package View;

import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JPanel;
import javax.swing.ScrollPaneConstants;

import View.Components.JPanelTouch;
import View.Components.JScrollPaneTouch;
import View.Components.TouchButton;
import View.Components.TouchObjectContainer;

public class FileChooser extends JPanel implements TouchObjectContainer{
	private static final long serialVersionUID = -3177613398878167776L;
	
	public Filesystem _unnamed_Filesystem_;
	
	public FileChooser() {
		this.setBackground(Color.red);
		initComponents();
	}
   private void initComponents() {

       jButton1 = new TouchButton("^^^^");
       jButton2 = new TouchButton("vvvv");
       jScrollPane1 = new JScrollPaneTouch();
       filePanel = new JPanelTouch();

       filePanel.setLayout(new ModifiedFlowLayout());
       filePanel.setBackground(new Color(59, 59, 59));

       jScrollPane1.setViewportView(filePanel);
       jScrollPane1.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
       jScrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
       
       javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
       this.setLayout(layout);
       layout.setHorizontalGroup(
           layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
           .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
           .addComponent(jButton2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
           .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
       );
       layout.setVerticalGroup(
           layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
           .addGroup(layout.createSequentialGroup()
               .addComponent(jButton1)
               .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
               .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 518, Short.MAX_VALUE)
               .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
               .addComponent(jButton2))
       );
   }// </editor-fold>
   // Variables declaration - do not modify
   private JPanelTouch filePanel;
   private TouchButton jButton1;
   private TouchButton jButton2;
   private JScrollPaneTouch jScrollPane1;
   // End of variables declaration

/**
 * This method return the variable filePanel.
 * @return the filePanel
 */
public JPanelTouch getFilePanel() {
    return filePanel;
}
/**
 * This methods sets the variable filePanel.
 * @param filePanel the filePanel to set
 */
public void setFilePanel(JPanelTouch filePanel) {
    this.filePanel = filePanel;
}
/**
 * This method return the variable jButton1.
 * @return the jButton1
 */
public TouchButton getjButton1() {
    return jButton1;
}
/**
 * This methods sets the variable jButton1.
 * @param jButton1 the jButton1 to set
 */
public void setjButton1(TouchButton jButton1) {
    this.jButton1 = jButton1;
}
/**
 * This method return the variable jButton2.
 * @return the jButton2
 */
public TouchButton getjButton2() {
    return jButton2;
}
/**
 * This methods sets the variable jButton2.
 * @param jButton2 the jButton2 to set
 */
public void setjButton2(TouchButton jButton2) {
    this.jButton2 = jButton2;
}
/**
 * This method return the variable jScrollPane1.
 * @return the jScrollPane1
 */
public javax.swing.JScrollPane getjScrollPane1() {
    return jScrollPane1;
}
/**
 * This methods sets the variable jScrollPane1.
 * @param jScrollPane1 the jScrollPane1 to set
 */
public void setjScrollPane1(JScrollPaneTouch jScrollPane1) {
    this.jScrollPane1 = jScrollPane1;
}
}